package factory.simplefactory2;

public abstract class Human {
    public String type;
    public void  say(){
        System.out.println("我是:"+this.type);
    }
}

class Man extends Human{
    public Man(){
        this.type="男人";
    }
}

class Women extends Human{
    public Women(){
        this.type="女人";
    }
}

class Robot extends Human{
    public Robot(){
        this.type="机器人";
    }
}